<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			body{
				height: 49990px;
				width: 10000px;
			}
		</style>
		<script>
			//捕捉窗口的滚动事件
			window.onscroll=function(){
				var t=document.documentElement||document.body;
				
				console.log("窗口滚动了：x="+t.scrollLeft+",y="+t.scrollTop);
			}
		</script>
	</head>
	<body>
	</body>
</html>
